Skip to content

Conversation

@Sacul0457
Copy link
Contributor

Summary

This PR adds a fetch_members_named method to Guild.
Docs: https://discord.com/developers/docs/resources/guild#search-guild-members
Somethings I'm unsure of/Things to note:

  • Version added is not set, cuz not sure if it is 2.6 or not
  • Not sure what to default to here
  • Could perhaps add a note to use the property members and query the names themselves?
  • Not the same as feat: Members Search #9912

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

"""

state = self._state
data = await state.http.search_members(name, self.id, limit)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If your intention is to have limit be truly optional, so None means search all members, then you'll need to implement pagination for this endpoint, using the after= param.

@Rapptz
Copy link
Owner

Rapptz commented Aug 16, 2025

This endpoint is explicitly not exposed since it's the same as the WebSocket operation. If it was going to be exposed it'd just use the same interface/method as the current query_members one.

@Rapptz Rapptz closed this Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants